class Cat:
    @classmethod
    def __init__(self, name):
        self.name = name

    def miao(self):
        print("miaomiao")
cat=Cat("小黑")
print(cat.name)
cat.miao()
#print(Cat.name)#实例属性不能能通过类名来调
